package test2;

public class GirlFriendTest1 {
    public static void main(String[] args) {
        //创建女朋友的对象
        Girlfriend1 gf1 = new Girlfriend1();
        gf1.name = "小诗诗";
        gf1.age = 18;
        gf1.gender = "女";

        System.out.println(gf1.name);
        System.out.println(gf1.age);
        System.out.println(gf1.gender);

        gf1.eat();
        gf1.sleep();
    }
}
